package org.bronycorps.mlptss.domain.model.event;

import java.util.EventObject;

import org.bronycorps.mlptss.domain.actor.EnemyActor;
import org.bronycorps.mlptss.domain.actor.MissileActor;
import org.bronycorps.mlptss.domain.layer.Track;

public class CreateMissileEvent extends EventObject {

	private Track track;

	public CreateMissileEvent(EnemyActor source, Track track) {
		super(source);
		this.track = track;
	}

	public CreateMissileEvent(MissileActor source, Track track) {
		super(source);
		this.track = track;
	}

	public EnemyActor getEnemyActor() {
		return (EnemyActor) getSource();
	}

	public MissileActor getMissileActor() {
		return (MissileActor) getSource();
	}

	public Track getTrack() {
		return this.track;
	}

}
